home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Amiga Amateur Radio User Group
/
AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].zip
/
AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].adf
/
DisView
/
DIALER
< prev
next >
Wrap
Text File
|
1995-05-29
|
8KB
|
258 lines
====== DISview [518]
dialer
======
_________________________________________________________________
dialer <interface>
_________________________________________________________________
Terminate dialing on <interface>. Dialing may also be terminated
from the keyboard with the ESC ENTER sequence.
>> Example: dialer sl0
_________________________________________________________________
dialer <interface> <dialer_filename>
[<seconds> [<pings> [<nodename>]]]
_________________________________________________________________
Set up an autodialer session for the interface. Whenever the
interface is idle for the interval in <seconds>, the autodialer
will ping <nodename>. If there is no answer after <pings>
attempts, the autodialer will execute the special commands
contained in <dialer_filename>.
If the interval in <seconds> is zero, a previous dialer command
process will be removed. If the number of <pings> is zero,
<dialer_filename> will be executed without pinging <nodename>.
The dialer file may have any valid name, and must be located in
the NET root directory. The dialer commands in the file are the
following:
>> Example: dialer sl0 dial_lon
dialer sl0 dialer (to re-dial a broken connection)
[See also the 'inline' command].
_________________________________________________________________
dialer <interface> <dialer_filename> demand
_________________________________________________________________
Start a dialer session which does not dial immediately, but will
dial whenever there is traffic for that interface. Please note
that this will dial for _any_ traffic on that interface, which
includes your NNTP kick that happens every few minutes. Only use
this option after making sure that you know exactly what traffic
there will be.
>> Example: dialer sl0 dial_ltn demand
_________________________________________________________________
dialer <interface> <dialer_filename> failexit
_________________________________________________________________
If the dial fails then exit from NET. Cures the problem where a
failed dial would leave a machine waiting for someone to press
ENTER, and can make unattended dialing more reliable.
(N.B. Unattended dialing is not recommended by DIS).
>> Example: dialer sl0 dial_rdg failexit
=====================================
DIALER FILE: INITIALISATION COMMANDS
=====================================
-----------------------------------------------------------------
dial_cmd "<string>"
-----------------------------------------------------------------
>> Example: dial_cmd "ATDT"
-----------------------------------------------------------------
init "<string>"
-----------------------------------------------------------------
Define the modem initialisation string.
>> Example: init "ATx4&a3&b1&k3\r"
-----------------------------------------------------------------
ld_code "<string>"
-----------------------------------------------------------------
>> Example: ld_code "131,1234567890"
-----------------------------------------------------------------
number "<string>"
-----------------------------------------------------------------
>> Example: number "01582644848"
-----------------------------------------------------------------
retries <count>
-----------------------------------------------------------------
>> Example: retries 50
===========================
DIALER FILE: DIAL COMMANDS
===========================
-----------------------------------------------------------------
control down|up
-----------------------------------------------------------------
Control the 'asy' interface. The 'down' option drops DTR and
RTS. The 'up' option asserts DTR and RTS.
>> Example: control down
-----------------------------------------------------------------
dial
-----------------------------------------------------------------
Dial the number(s) specified in the 'number' command(s).
If more than one number is specified, each number is dialed in
turn in round-robin fashion until a connection is made.
>> Example: dial
-----------------------------------------------------------------
init
-----------------------------------------------------------------
Initialise the modem.
>> Example: init
-----------------------------------------------------------------
send "<string>" [<milliseconds>]
-----------------------------------------------------------------
This dialer command will write the specified string to the
interface. The string quote marks are required, and the string
may not contain embedded control characters. However, the
standard 'C' string escape sequences such as \r are recognized
(but \0 should not be used).
>> Example: send "PPP\r"
-----------------------------------------------------------------
speed <speed>
-----------------------------------------------------------------
This command sets the speed of the PC-to-modem link to <speed>
bits per second.
>> Example: speed 38400
-----------------------------------------------------------------
status up|down
-----------------------------------------------------------------
>> Example: status up
-----------------------------------------------------------------
wait <milliseconds> [ "<string>" [<speed>] ]
-----------------------------------------------------------------
If only <millseconds> is specified, the dialer pauses for the
desired number of milliseconds. Otherwise, the dialer reads
until the <string> is detected on the interface.
If the string is not detected within the desired time, the
autodialer will reset. The string quote marks are required, and
the string may not contain embedded control characters. However,
the standard C string escape sequences are recognized (but \0
should not be used).
If the <speed> parameter is specified, the dialer will continue
to read characters until a non-digit is detected. The string
read is converted to an integer, and used to set the interface
speed. If the trailing non-digit is not detected within the
desired time, or the integer value is not a valid speed, the
autodialer will reset.
>> Examples: wait 1000
wait 60000 "ogin:"
-----------------------------------------------------------------
cwait <milliseconds> [ "<success_string>"
"<failure_string>" ["<failure_string>" ...] [<speed>] ]
-----------------------------------------------------------------
>> Example: cwait 45000 "CONNECT" "BUSY" "NO CARRIER" "NONE"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EXAMPLE OF A COMPLETE DIALER FILE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This is the dialer file used by NET.EXE/KA9Q - the live file is
# simply called DIALER
#
# Most parts of this can be maintained by the DIS.EXE program
# only alter this by hand if you are confident of what you are
# doing
#
# Configuration section.
#
configure:
init "ATx4&a3&b1&k3\r"
dial_cmd "ATDT"
ld_code ""
number "01582644848"
retries 50
#
# Execution section.
#
execute:
#
# Toggle DTR.
#
control down
wait 2000
control up
wait 2000
#
# Initialize the modem.
#
init
wait 3000 "OK"
#
# Dial and wait for connection.
#
dial
cwait 45000 "CONNECT" "BUSY" "NO CARRIER" "NONE"
#
# Now log in.
#
wait 60000 "ogin:"
wait 1000
send "dowrmain\r"
wait 60000 "word:"
send "mypasswd\r"
wait 60000 "otocol:"
send "PPP\r"
wait 60000 "HELLO"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
N.B. If the login account password is changed (by logging in to
Demon with the command 'telnet password.demon.co.uk'), the
password must also be changed in the dialer file.